package ooExercise.ooday02;

public class Doctor extends Person {
    String title;
    Doctor(String name,int age,String adderss,String tilte){
        super(name,age,adderss);
        this.title=tilte;
    }
    void cut(){
        System.out.println(name+"医生正在做手术");
    }
    void sleep(){
        System.out.println(name+"正在做白日梦,梦到"+name+"当上了"+title);
    }
    void sayHi(){
        System.out.println("大家好,我叫"+name+",今年"+age+"岁了,家住："+address+"职位是："+title);
    }
}
